package com.cinc.ebc.sd.service;

import com.cinc.ebc.sd.entity.SdDispatchLoadDetail;
import com.cinc.ebc.sd.entity.SdDispatchLoad;
import com.baomidou.mybatisplus.extension.service.IService;
import com.cinc.ebc.sd.model.SdDispatchLoadDetailOutModel;

import java.io.Serializable;
import java.util.Collection;
import java.util.List;

/**
 * @Description: 装车单
 * @Author: jeecg-boot
 * @Date:   2022-09-25
 * @Version: V1.0
 */
public interface ISdDispatchLoadService extends IService<SdDispatchLoad> {

	/**
	 * 添加一对多
	 *
	 */
	public void saveMain(SdDispatchLoad sdDispatchLoad,List<SdDispatchLoadDetail> sdDispatchLoadDetailList) throws Exception;

	/**
	 * 修改一对多
	 *
	 */
	public void updateMain(SdDispatchLoad sdDispatchLoad,List<SdDispatchLoadDetail> sdDispatchLoadDetailList) throws Exception;

	/**
	 * 删除一对多
	 */
	public void delMain (String id) throws Exception;

	/**
	 * 批量删除一对多
	 */
	public void delBatchMain (Collection<? extends Serializable> idList) throws Exception;

	/**
	 * 出库
	 * @param detailOutModelList
	 */
    void handleOut(List<SdDispatchLoadDetailOutModel> detailOutModelList) throws Exception;
}
